﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;


namespace zmMoniter
{
    class Warning
    {
        public string sId;
        public string sDeck;
        public string sLayer;
        public string sDevice;
        public double dX;
        public double dY;
        public string dtTime;
        public string sDamBlock = "";
        public Warning(string ID, string Deck)
        {
            sId = ID;
            sDeck = Deck;
            sDamBlock = Deck.Substring(0, Deck.LastIndexOf('-'));
        }
        public void setLayer(string layer)
        {
            sLayer=layer;
        }
        public void setItemInfo(string device,string time,double x,double y)
        {
            sDevice=device;
            dtTime=time;
            dX=x;
            dY=y;
        }
    }
}
